#include "primitive.h"

#include <cstdio>

namespace raytrace {

void Primitive::DumpToLog() const {
  printf("+- i: %lu\n", id_);
  printf("| +- t: %s\n", type());
  printf("| +- p: %.3f %.3f %.3f\n", pos_.x_, pos_.y_, pos_.z_);
  printf("| +- m: \n");
  material_->DumpToLog();
}

}
